package com.mdhw.system.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mdhw.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * sys_user
 * @author
 */
@Data
@ToString(callSuper =true)
@EqualsAndHashCode(callSuper =true)
public class SysUser extends BaseEntity implements Serializable {

    /**
     * 登录名
     */
    private String loginName;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 头像
     */
    private String headerUrl;

    /**
     * 盐
     */
    private String salt;

    /**
     * 登陆ip
     */
    //private String lastLoginIp;




    /**
     * 1系统用户 2供应链用户
     */
    private String userType;





    /**
     * 最后登录时间
     */
   /* @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastLoginTime;*/

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否开启
     */
    private String isOpen;

    // 上级用户ID
    private Long pid;

    // 奖励比例
   /* @ApiModelProperty(value = "奖励比例")
    private BigDecimal rewardRote;*/

    // 导入条数限制
    @ApiModelProperty(value = "号码导入限制")
    //private Integer leadIntoLimit;

    // 代理用户等级

    private Integer level;
    // excel导入
    /*@ApiModelProperty(value = "excel导入")
    private String excelLeadInto;*/
    // excel导出
    /*@ApiModelProperty(value = "excel导出")
    private String excelLeadOut;*/
    // 导出带号码
    /*@ApiModelProperty(value = "导出带号码")
    private String leadOutWithPhone;*/
    // 查看类别(所有数据)
    /*@ApiModelProperty(value = "查看类别(所有数据)")
    private String getAllData;*/

    private String isPrizePool;
    @ApiModelProperty(value = "邀请码")
    private String yaoqingma;

    private BigDecimal balance;

    private String isZhizhun;

    private Long  parentZhizhunUserId;

    private String isFective;

    private Long levelId;

    private String qrCode;

    private Integer zhituirenshu;

    private Long    jiazhuangId;

    private String payPassword;

    private String name;

    private BigDecimal canTixian;

    private String appQrCode;
    private static final long serialVersionUID = 1L;
}
